package com.ruoyi.community.mapper.hospital;

import com.ruoyi.community.domain.hospital.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Mapper
@Repository
public interface UserMapper
{
    User login(@Param("open_id")String open_id);
    List<Doctor> getDoctors(@Param("community_id")String community_id);
    ScheduleRecord getDoctorAvailable(@Param("doctor_id")int doctor_id, @Param("start_time")Timestamp start_time);
    void addRegister(@Param("open_id") String open_id, @Param("doctor_id")int doctor_id, @Param("start_time")Timestamp start_time);
    void updateDoctorRegister(@Param("doctor_id")int doctor_id, @Param("start_time")Timestamp start_time);
    Payment payment(@Param("open_id")String open_id);
    List<GetMedicine> getMedicine(@Param("open_id")String open_id);
    MedicineRepo getSingleMedicineRepo(@Param("medicine_id") int medicine_id);
    UserStage getNowStage(@Param("open_id")String open_id);
    List<RegisterRecord> getRegisterRecord(@Param("open_id")String open_id);
}